package gameClient.model;

import gameClient.model.Poker;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Message implements Serializable {
    //消息类型 1：不抢 2：抢地主
    private int typeid;
    //玩家id
    private int playerid;
    //消息内容
    private String content;
    //扑克列表
    private List<Poker> pokers = new ArrayList<>();

    public int getTypeid() {
        return typeid;
    }

    public void setTypeid(int typeid) {
        this.typeid = typeid;
    }

    public int getPlayerid() {
        return playerid;
    }

    public void setPlayerid(int playerid) {
        this.playerid = playerid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<Poker> getPokers() {
        return pokers;
    }

    public void setPokers(List<Poker> pokers) {
        this.pokers = pokers;
    }

    public Message() {}

    public Message(int typeid, int playerid, String content, List<Poker> pokers) {
        this.typeid = typeid;
        this.playerid = playerid;
        this.content = content;
        this.pokers = pokers;
    }


}


